import './assets/main.css'
import { createApp } from 'vue'
// 引用App组件
// 没有使用{}的引用叫做统一暴露(默认暴露)的引用
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import {router} from "@/router/router.ts";
import {createPinia} from "pinia";
// 引用pinia持久化组件
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

const app = createApp(App)
const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)
app.use(pinia)
app.use(router)
app.use(ElementPlus)
app.mount('#app')

